// 创建初始状态，并导出一个函数
const defaultState = {
    isShow:"false"
}
// eslint-disable-next-line
// 导出一个函数
// eslint-disable-next-line
const reducer = (state=defaultState,action) => {
    let newState = JSON.parse(JSON.stringify(state))
    switch(action.type){
        case "showDown":
            newState.isShow = "false";
            break
        case "showUp":
            newState.isShow = "true";
            break
        default :
        newState.isShow = "true";
    }
    return newState
}
export default reducer
